package com.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author huzhaoxi
 * @since 2021-01-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("system_user")
public class SystemUser extends Model {

    private static final long serialVersionUID = 1L;

    /**
     * 用户名
     */
    @TableId(value = "user_id",type = IdType.INPUT)
    private String userId;

    /**
     * 密码
     */
    private String psw;

    /**
     * 昵称
     */
    private String name;

    /**
     * 用于修改密码 新密码参数
     */
    @TableField(exist = false)
    private String newPsw;

}
